<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<?php
	$xml_str="<products name='{$product_title}' shopname='产品图片'>";
	$xml_str.="<smallpic selected='selected'>".get_real_path($big_pic_path)."</smallpic>";
	$xml_str.="<bigpic selected='selected'>".get_real_path($big_pic_path)."</bigpic>";
	foreach($more_pic as $row)
	{
		$xml_str.='<smallpic>'.get_real_path($row->pic_path).'</smallpic>';
		$xml_str.='<bigpic>'.get_real_path($row->pic_path).'</bigpic>';
	}
	$xml_str.='</products>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<Title><?php echo $product_title;?>--产品相册</Title>
<style>
body {
	margin:0;
}
</style>
<script>
function windowClose(){
	if(window.confirm("确定关闭该窗口吗?")){window.close();}
}
</script>
</head>

<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="100%" height="600">
  <param name="movie" value="{tpl_path}flash/pic-view.swf" />
  <param name="quality" value="high" />
  <param name="flashvars" value="xml=<?php echo $xml_str;?>" />
  <embed src="{tpl_path}flash/pic-view.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" flashvars="xml=<?php echo $xml_str;?>" width="100%" height="600"></embed>
</object>
</body>
</html>